#Makefile

lattice-d2q9-compare.x: main.cpp ../fftw++/fftw++.cc ../fftw++/fftw++.h Lattice.o Cell.o
	g++ -O3 -funroll-loops main.cpp ../fftw++/fftw++.cc Lattice.o Cell.o -std=c++0x -lfftw3 -o lattice-d2q9-compare.x

Lattice.o: ../Lattice.cpp ../Lattice.h ../Cell.h ../Cell.cpp ../Common.h
	g++ -c -std=c++0x -O3 -funroll-loops ../Lattice.cpp ../Cell.h ../Cell.cpp ../Common.h

Cell.o: ../Cell.cpp ../Cell.h ../Common.h
	g++ -c -std=c++0x -O3 -funroll-loops ../Cell.cpp ../Cell.h ../Common.h

clean:
	rm Lattice.o Cell.o lattice-d2q9-compare.x

# debug: main.cpp Lattice.cpp Lattice.h Cell.cpp Cell.h
# 	g++ -c Lattice.cpp -g
# 	g++ main.cpp Lattice.o -lGL -lGLU -lglut -o debug-d2q9glut.x
